package ua.khpi.si.kit49.diploma.service;

import java.util.List;

import ua.khpi.si.kit49.diploma.db.dto.Connection;

/**
 * Interface for connection service
 * 
 * @author netstalk3r
 * 
 */
public interface ConnectionService {

	/**
	 * method for getting all connections
	 * 
	 * @return list with connections
	 */
	List<Connection> getAllConnection();

	/**
	 * method for getting connection by id
	 * 
	 * @param id
	 *            current connection id
	 * @return particular connection
	 */
	Connection getConnectionById(Integer id);

	/**
	 * method for getting connection by started id and finished id
	 * 
	 * @param start
	 *            id of started city
	 * @param finish
	 *            id of finished city
	 * @return particular connection
	 */
	Connection getConnectionByStartAndFinish(Integer start, Integer finish);

}
